/**
 * 
 */
package helper;

import java.io.File;
import java.io.IOException;
import de.vdheide.mp3.*;


/**
 * @author Pascal de Vink
 * @version 0.2
 */
public class IDv3 {

	public IDv3()
	{
		
	}
	
	public boolean hasTag(File file) throws IOException
	{
		ID3 id3 = new ID3(file);
		return id3.checkForTag();
	}
	
	public String readArtist(File file) throws IOException, NoID3TagException
	{
		ID3 id3 = new ID3(file);
		return id3.getArtist();
	}
	
	public String readAlbum(File file) throws IOException, NoID3TagException
	{
		ID3 id3 = new ID3(file);
		return id3.getAlbum();
	}
	
	public String readTitle(File file) throws IOException, NoID3TagException
	{
		ID3 id3 = new ID3(file);
		return id3.getTitle();
	}
		
	public String readYear(File file) throws IOException, NoID3TagException
	{
		ID3 id3 = new ID3(file);
		return id3.getYear();
	}
}
